<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title>修改<?php echo $groupsname?>圈子信息</title>
<link href="../member/templets/style/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../member/templets/js/j.js"></script>
<script language="javascript" type="text/javascript" src="../member/templets/js/table_function.js"></script>
<script language="javascript" type="text/javascript">
function checkSubmit(){
   if(document.form1.groupname.value==""){
	    alert("圈子名称不能为空！");
	    return false;
   }else if(document.form1.store.value==0){
   		alert("请选择一个分类！");
	    return false;
   }
}
function SeePic(img,f){
   if ( f.value != "" ) { img.src = f.value; }
}
</script>
</head>
<body>
<div id="main">
  <?php include(DEDEMEMBER."../templets/head.htm"); ?>
  <div id="content" class="w960 clearfix">
    <?php include(DEDEMEMBER."./templets/menu.php"); ?>
    <div id="mcpmain">
      <div id="appTab">
        <ul>
          <li class="thisTab"><a href="mygroup.php"><span>创建的圈子</span></a></li>
          <li><a href="myjoin.php"><span>我的发帖</span></a></li>
          <li><a href="index.php"><span>圈子频道</span></a></li>
          <li><a href="create.php" target="_blank"><span>创建圈子</span></a></li>
        </ul>
      </div>
      <ul class="tabSub">
        <li class='thisTab'><a href="mygroup_manage.php?id=<?php echo $id;?>"><span>基本资料</span></a></li>
        <li><a href="mygroup_cate.php?id=<?php echo $id;?>"><span>话题分类</span></a></li>
        <li><a href="mygroup_member.php?id=<?php echo $id;?>"><span>成员管理</span></a></li>
        <li><a href="mygroup_skin.php?id=<?php echo $id;?>"><span>自定义风格</span></a></li>
        <li><a href="mygroup_notice.php?id=<?php echo $id;?>"><span>修改公告</span></a></li>
      </ul>
      <div id="mainCp">
        <h3 class="meTitle"><strong>基本资料</strong></h3>          
        <form name="form1" action="" enctype="multipart/form-data" method="post" onsubmit="return checkSubmit();">
              <input name="action" type="hidden" value="save" />
              <table cellspacing="0" width="100%" class="submit">
                <tbody>
                  <tr>
                    <td width="15%" align="right" valign="top">名称：</td>
                    <td><input class="text" name="groupname" type="text" id="groupname" value="<?php echo $groupsname?>" size="30" maxlength="70" />
                      *在30个字符内。</td>
                  </tr>
                  <tr>
                    <td align="right" valign="top">分类：</td>
                    <td><select name="store" id="store" class="group_option">
                        <?php echo $option?>
                      </select></td>
                  </tr>
                  <tr>
                    <td align="right" valign="top">图标：</td>
                    <td><input name="litpic" size="33" type="file" id="litpic" onchange="SeePic(document.picview,document.form1.litpic);" value="<?php echo $groupimg?>" /><div class="clear mTB10"></div>
                      <img src="<?php echo $groupimg!='' ? $groupimg : 'img/pview.gif';?>" name="picview" width="100" height="70" id="picview" /> </td>
                  </tr>
                  <tr>
                    <td align="right" valign="top"><span class="td1">说明：</span></td>
                    <td><textarea name="des" cols="60" rows="5" id="des" style="width:70%;"><?php echo $groupdes?></textarea></td>
                  </tr>
                </tbody>
                <tfoot>
                  <tr>
                    <td align="right" valign="top">&nbsp;</td>
                    <td><button class="button2" type="submit">保存</button></td>
                  </tr>
                </tfoot>
              </table>
            </form>
        </div>
        <!--主操作区域 -->
      </div>
 <div class="clear"></div>
    </div>
  </div>
<?php include(DEDEMEMBER."./templets/foot.htm"); ?>
</div>
</body>
</html>
